import { observable, action } from "mobx-miniprogram";
export const user = observable({
  name: "",
  age: "",
  get Person() {
    return this.name + "," + this.age;
  },
  update_user: action(function (e: any) {
    user.name = e.currentTarget.dataset.name;
    user.age = e.currentTarget.dataset.age;
    console.log(user);
  }),
});
